projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
decaba0
)
(indent-for-tab-command): Use use-region-p.
author
Chong Yidong
<cyd@stupidchicken.com>
Thu, 30 Oct 2008 23:52:39 +0000
(23:52 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Thu, 30 Oct 2008 23:52:39 +0000
(23:52 +0000)
lisp/indent.el
patch
|
blob
|
history
diff --git
a/lisp/indent.el
b/lisp/indent.el
index f942847ec64a81d682e1caef7d57b302609753be..f962cf4686f6bb063e94bb0a25f22836d1e60965 100644
(file)
--- a/
lisp/indent.el
+++ b/
lisp/indent.el
@@
-93,8
+93,7
@@
The function actually called to indent the line is determined by the value of
(interactive "P")
(cond
;; The region is active, indent it.
- ((and transient-mark-mode mark-active
- (not (eq (region-beginning) (region-end))))
+ ((use-region-p)
(indent-region (region-beginning) (region-end)))
((or ;; indent-to-left-margin is only meant for indenting,
;; so we force it to always insert a tab here.